package migrations

import "zero_server/pkg/migration"

type AdminAdmin struct {
	ID       uint   `gorm:"column:id;type:int(11);primaryKey;autoIncrement:true;comment:管理员ID" json:"id"`
	Name     string `gorm:"column:name;type:varchar(100);not null;default:'';comment:姓名" json:"name"`
	Phone    string `gorm:"column:phone;type:varchar(20);not null;default:'';comment:手机号" json:"phone"`
	Username string `gorm:"uniqueIndex;column:username;type:varchar(50);not null;default:'';comment:账号" json:"username"`
	Password string `gorm:"column:password;type:varchar(100);not null;default:'';comment:密码" json:"password"`
	GroupId  uint   `gorm:"column:group_id;type:int(11);null;default:null;comment:角色ID" json:"group_id"`
	migration.SetMigrationStatus
	migration.SetMigrationDate
}
